package com.gxuwz.com_property.business.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gxuwz.com_property.business.dto.BusinessDto;
import com.gxuwz.com_property.business.pojo.Business;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface BusinessService {
    /**
     * 添加订单
     * */
    public boolean addBusinessInfo(Business business);

    boolean updateBusinessInfo(Business business);

    /**
     * 查询订单,动态sql语句，根据里面的属性进行查询
     * */
    public Business selectBusinessBybusiness(Business business);

    /**
     * 分页查询
     * */
    public IPage<BusinessDto> selectBusinessByPage(Page<BusinessDto> page, @Param("businessDto") BusinessDto businessDto);

    public List<Business> BusinessChartMangene(BusinessDto businessDto);
}
